home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / doc / getsyms.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-07-07  |  242 b   |  8 lines  |  [TEXT/R*ch]

  1. #!/bin/sh
  2.  
  3. # This script extracts GDL symbols defined in the input file.
  4.  
  5. grep '@deffn' $1 | grep '@code' | grep -v '@c ' | sed -e 's/^.*@deffn \([^ ]*\) @code{\([^{ }]*\)}.*$/\2 \1/' | sed -e 's/@@/@/' | grep -v '^zz-' | sort | uniq
  6.  
  7. exit 0
  8.